/*
 * @Author      : ZhouQiJun
 * @Date        : 2025-07-20 01:57:54
 * @LastEditors : ZhouQiJun
 * @LastEditTime: 2025-07-20 02:09:09
 * @Description : 页面对象管理器
 */
import { Page } from '@playwright/test'
import DatePickerPage from './DatePickerPage'
import FormLayoutsPage from './FormLayoutsPage'
import NavigationTo from './NavigationTo'

export class PageManager {
  private readonly page: Page
  private readonly _navTo: NavigationTo
  private readonly datePickerPage: DatePickerPage
  private readonly formLayoutsPage: FormLayoutsPage

  constructor(page: Page) {
    this.page = page
    this._navTo = new NavigationTo(page)
    this.datePickerPage = new DatePickerPage(page)
    this.formLayoutsPage = new FormLayoutsPage(page)
  }
  navTo() {
    return this._navTo
  }
  onDatePickerPage() {
    return this.datePickerPage
  }
  onFormLayoutsPage() {
    return this.formLayoutsPage
  }
}
